package com.woniu.dao;

import com.woniu.domain.User;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Param;
/**
 * @author: 刘家元  <br/>
 * Date: 2021/6/8:12:18  <br/>
 * Description:用户登录持久化接口
 */

public interface UserLoginDao {
    @ApiOperation(value = "根据账号查询对应的用户")
    @ApiImplicitParam(name = "account",value = "用户账号")
    User userGetByaccount(@Param("account") String account);

    @ApiOperation(value = "根据id查询对应的用户")
    @ApiImplicitParam(name = "id",value = "用户id")
    User userGetById(@Param("id") Integer  id);
}
